package gui;

import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JApplet;
import javax.swing.JButton;
import javax.swing.SwingUtilities;

import gui.markers.FigureMarkerFactory;

public class RunApplet extends JApplet  {
    
    public void init() {
        try {
            SwingUtilities.invokeAndWait(new Runnable() {
                public void run() {
                    initComponents();
                }
            });
        } catch (Exception e) {
            System.err.println("CreateGUI didn't successfully complete");
        }
    }
    
    private void initComponents() {
        
        CreateGui gui = new CreateGui();
        
        setLayout(new FlowLayout());
        add(gui.board);
        add(gui.btDrawElipse);
        add(gui.btDrawRectangle);
        add(gui.btDrawStraightLine);
        add(gui.btDrawLine);
        add(gui.btSelect);
        add(gui.btResize);
        add(gui.btClearLast);
        add(gui.btRedoLast);
        add(gui.btClearAll);
    }
    
}
